package marvin.music.dto;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = PlayList.ROOT_NODE)
@XmlAccessorType(XmlAccessType.NONE)
public class PlayList {
	public static final String ROOT_NODE = "playlist";
	
	@XmlElement(name="item")
	private List<String> playList;

	public PlayList() {
		playList = new LinkedList<String>();
	}

	public void addItem(String item){
		playList.add(item);
	}
	
	public List<String> getPlayList() {
		return playList;
	}

	void setPlayList(List<String> playList) {
		this.playList = playList;
	}
}
